Optimal. Leaf size=170 \[ \frac {4 a^2 (A+2 B+3 C) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 d}+\frac {2 a^2 (7 A+5 B-15 C) \sin (c+d x) \sqrt {\cos (c+d x)}}{15 d}+\frac {4 a^2 (4 A+5 B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}+\frac {2 (A-5 C) \sin (c+d x) \sqrt {\cos (c+d x)} \left (a^2 \cos (c+d x)+a^2\right )}{5 d}+\frac {2 C \sin (c+d x) (a \cos (c+d x)+a)^2}{d \sqrt {\cos (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.53, antiderivative size = 170, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 8, integrand size = 43, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.186, Rules used = {4112, 3043, 2976, 2968, 3023, 2748, 2641, 2639} \[ \frac {4 a^2 (A+2 B+3 C) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 d}+\frac {2 a^2 (7 A+5 B-15 C) \sin (c+d x) \sqrt {\cos (c+d x)}}{15 d}+\frac {4 a^2 (4 A+5 B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}+\frac {2 (A-5 C) \sin (c+d x) \sqrt {\cos (c+d x)} \left (a^2 \cos (c+d x)+a^2\right )}{5 d}+\frac {2 C \sin (c+d x) (a \cos (c+d x)+a)^2}{d \sqrt {\cos (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2639
Rule 2641
Rule 2748
Rule 2968
Rule 2976
Rule 3023
Rule 3043
Rule 4112
Rubi steps
\begin {align*} \int \cos ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^2 \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx &=\int \frac {(a+a \cos (c+d x))^2 \left (C+B \cos (c+d x)+A \cos ^2(c+d x)\right )}{\cos ^{\frac {3}{2}}(c+d x)} \, dx\\ &=\frac {2 C (a+a \cos (c+d x))^2 \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+\frac {2 \int \frac {(a+a \cos (c+d x))^2 \left (\frac {1}{2} a (B+4 C)+\frac {1}{2} a (A-5 C) \cos (c+d x)\right )}{\sqrt {\cos (c+d x)}} \, dx}{a}\\ &=\frac {2 C (a+a \cos (c+d x))^2 \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+\frac {2 (A-5 C) \sqrt {\cos (c+d x)} \left (a^2+a^2 \cos (c+d x)\right ) \sin (c+d x)}{5 d}+\frac {4 \int \frac {(a+a \cos (c+d x)) \left (\frac {1}{4} a^2 (A+5 B+15 C)+\frac {1}{4} a^2 (7 A+5 B-15 C) \cos (c+d x)\right )}{\sqrt {\cos (c+d x)}} \, dx}{5 a}\\ &=\frac {2 C (a+a \cos (c+d x))^2 \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+\frac {2 (A-5 C) \sqrt {\cos (c+d x)} \left (a^2+a^2 \cos (c+d x)\right ) \sin (c+d x)}{5 d}+\frac {4 \int \frac {\frac {1}{4} a^3 (A+5 B+15 C)+\left (\frac {1}{4} a^3 (7 A+5 B-15 C)+\frac {1}{4} a^3 (A+5 B+15 C)\right ) \cos (c+d x)+\frac {1}{4} a^3 (7 A+5 B-15 C) \cos ^2(c+d x)}{\sqrt {\cos (c+d x)}} \, dx}{5 a}\\ &=\frac {2 a^2 (7 A+5 B-15 C) \sqrt {\cos (c+d x)} \sin (c+d x)}{15 d}+\frac {2 C (a+a \cos (c+d x))^2 \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+\frac {2 (A-5 C) \sqrt {\cos (c+d x)} \left (a^2+a^2 \cos (c+d x)\right ) \sin (c+d x)}{5 d}+\frac {8 \int \frac {\frac {5}{4} a^3 (A+2 B+3 C)+\frac {3}{4} a^3 (4 A+5 B) \cos (c+d x)}{\sqrt {\cos (c+d x)}} \, dx}{15 a}\\ &=\frac {2 a^2 (7 A+5 B-15 C) \sqrt {\cos (c+d x)} \sin (c+d x)}{15 d}+\frac {2 C (a+a \cos (c+d x))^2 \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+\frac {2 (A-5 C) \sqrt {\cos (c+d x)} \left (a^2+a^2 \cos (c+d x)\right ) \sin (c+d x)}{5 d}+\frac {1}{5} \left (2 a^2 (4 A+5 B)\right ) \int \sqrt {\cos (c+d x)} \, dx+\frac {1}{3} \left (2 a^2 (A+2 B+3 C)\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx\\ &=\frac {4 a^2 (4 A+5 B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}+\frac {4 a^2 (A+2 B+3 C) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 d}+\frac {2 a^2 (7 A+5 B-15 C) \sqrt {\cos (c+d x)} \sin (c+d x)}{15 d}+\frac {2 C (a+a \cos (c+d x))^2 \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+\frac {2 (A-5 C) \sqrt {\cos (c+d x)} \left (a^2+a^2 \cos (c+d x)\right ) \sin (c+d x)}{5 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 6.58, size = 1356, normalized size = 7.98 \[ \text {result too large to display} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.47, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (C a^{2} \cos \left (d x + c\right )^{2} \sec \left (d x + c\right )^{4} + {\left (B + 2 \, C\right )} a^{2} \cos \left (d x + c\right )^{2} \sec \left (d x + c\right )^{3} + {\left (A + 2 \, B + C\right )} a^{2} \cos \left (d x + c\right )^{2} \sec \left (d x + c\right )^{2} + {\left (2 \, A + B\right )} a^{2} \cos \left (d x + c\right )^{2} \sec \left (d x + c\right ) + A a^{2} \cos \left (d x + c\right )^{2}\right )} \sqrt {\cos \left (d x + c\right )}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A\right )} {\left (a \sec \left (d x + c\right ) + a\right )}^{2} \cos \left (d x + c\right )^{\frac {5}{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 5.78, size = 595, normalized size = 3.50 \[ -\frac {4 a^{2} \left (-12 A \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+2 \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \left (16 A +5 B \right ) \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )-\sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \left (13 A +5 B +15 C \right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+5 A \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-12 A \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+10 B \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-15 B \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+15 C \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\right )}{15 \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 5.32, size = 237, normalized size = 1.39 \[ \frac {2\,A\,a^2\,\left (\frac {2\,\sqrt {\cos \left (c+d\,x\right )}\,\sin \left (c+d\,x\right )}{3}+\frac {2\,\mathrm {F}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )}{3}\right )}{d}+\frac {2\,B\,a^2\,\left (\sqrt {\cos \left (c+d\,x\right )}\,\sin \left (c+d\,x\right )+6\,\mathrm {E}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )+4\,\mathrm {F}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )\right )}{3\,d}+\frac {2\,A\,a^2\,\mathrm {E}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )}{d}+\frac {2\,C\,a^2\,\mathrm {E}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )}{d}+\frac {4\,C\,a^2\,\mathrm {F}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )}{d}-\frac {2\,A\,a^2\,{\cos \left (c+d\,x\right )}^{7/2}\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (\frac {1}{2},\frac {7}{4};\ \frac {11}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{7\,d\,\sqrt {{\sin \left (c+d\,x\right )}^2}}+\frac {2\,C\,a^2\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (-\frac {1}{4},\frac {1}{2};\ \frac {3}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{d\,\sqrt {\cos \left (c+d\,x\right )}\,\sqrt {{\sin \left (c+d\,x\right )}^2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________